home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / C-D / DeveloperStax.cpt / Developer Stack 1.2r / card_27504.txt < prev    next >
Text File  |  1989-02-26  |  7KB  |  156 lines

  1. -- card: 27504 from stack: in.2r
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 2612
  5. -- name: ResCopy
  6.  
  7.  
  8. -- part 1 (button)
  9. -- low flags: 00
  10. -- high flags: A003
  11. -- rect: left=82 top=302 right=324 bottom=182
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 1
  15. -- font id: 0
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: Install
  20. ----- HyperTalk script -----
  21. on mouseUp
  22.   --
  23.   --Original script by Steve Drazga, ART Incorpoated
  24.   --XFCNs used: none
  25.   --XCMDs used: none
  26.   --HANDLERS used: none
  27.   --FUNCTIONS used: installRes
  28.   --
  29.   if the optionkey is down then pass mouseup
  30.   put installres(XCMD,ResCopy) into it
  31.   put installres(DITL,ResCopy) into it
  32.   put installres(DLOG,ResCopy) into it
  33.   put installres(DITL,"RC Help") into it
  34.   put installres(DLOG,"RC Help") into it
  35. end mouseup
  36.  
  37.  
  38.  
  39. -- part contents for background part 2
  40. ----- text -----
  41. ResCopy
  42.  
  43. -- part contents for background part 3
  44. ----- text -----
  45. This is version 4.0b19 of the ResCopy XCMD by Steve Maller.
  46.  
  47. ResCopy XCMD Stack Hints & Tips
  48. Written by Steve Maller
  49.  
  50. ResCopy is (c) 1988 Apple Computer, Inc. 
  51.  "...a license agreement allowing commercial distribution of ResCopy is available for $25 per product/year from Apple Computer Software Licensing. Contact them at (408)996-1010..."
  52.  
  53. ***************************
  54.  
  55. TO USE ResCopy:
  56.  
  57. -¬†Click the ‚ÄúOpen‚Ķ‚Äù buttons to present a list of stacks on any inserted disk.
  58.  
  59. -  Select from either list the resource or resources you want to copy, remove, rename or renumber.
  60.  
  61. -¬†If you click on an ‚ÄòICON‚Äô, it is displayed in the box in the middle of the window. If you click on a ‚Äòsnd ‚Äô, the ‚ÄúPlay‚Äù button is activated. If you click on a ‚ÄòCURS‚Äô the cursor is changed to that cursor until you click the mouse again.
  62.  
  63. -¬†Click the ‚ÄúCopy‚Äù button to copy a selected resource(s) in the direction the arrows point. (The original stack is not changed by copying).
  64.  
  65. -  Click the ‚ÄúRemove‚Äù button to remove the selected resource(s) from the stack.
  66.  
  67. -  Click the ‚ÄúEdit‚Äù menu to select either 
  68. ‚ÄúRename...‚Äù or ‚ÄúRenumber...‚Äù to rename or renumber the selected resource.  (A dialog box will appear prompting you for the new name or number.)
  69.  
  70. -¬†Click the ‚ÄúClose‚Äù buttons to close stacks that you have opened. (A stack must be closed before you can open another one in its place.)
  71.  
  72. -  Click the ‚ÄúPlay‚Äù button to listen to a selected sound resource. Press Command-Period if you want to stop the sound before it finishes.
  73.  
  74. -  Click the ‚ÄúHelp‚Äù button for help with ResCopy.
  75.  
  76. -  Click the ‚ÄúQuit‚Äù button to exit the ResCopy program and return to HyperCard.
  77.  
  78. ***************************
  79.  
  80. B)¬†ResCopy will not open any file that is already open, unless you open it as read-only (see next item).
  81.  
  82. C)¬†The ‚ÄúOpen‚Ķ‚Äù button defaults to displaying a list of HyperCard stacks only. Click ‚ÄúAll resource files (read only)‚Äù in the ‚ÄúOpen‚Äù dialog to display all resource files. Use this method to look at HyperCard itself, the System file, or any file that contains resources (like applications). These files are opened read-only, meaning that you can copy from them, but you cannot make any changes to them.
  83.  
  84. D)¬†Option-click the ‚ÄúRemove‚Äù button to avoid a warning alert.
  85.  
  86. E)¬†The following command-key shortcuts are available:
  87. ¬†¬†¬†¬†¬†¬†Command-R  ‚Äî  ‚ÄúRename‚Ķ‚Äù
  88. ¬†¬†¬†¬†¬†¬†Command-N  ‚Äî  ‚ÄúRenumber‚Ķ‚Äù
  89. ¬†¬†¬†¬†¬†¬†Command-P  ‚Äî  ‚ÄúPlay‚Äù
  90. ¬†¬†¬†¬†¬†¬†Command-?  ‚Äî  ‚ÄúHelp‚Äù
  91. ¬†¬†¬†¬†¬†¬†Command-Q  ‚Äî  ‚ÄúQuit‚Äù
  92.  
  93. E)¬†To install ResCopy into another stack (bash copy protection!), copy these resources:
  94.  
  95. (required)
  96. ¬†¬†¬†¬†¬†¬†¬†XCMD=10000 "ResCopy"
  97. ¬†¬†¬†¬†¬†¬†¬†DITL=10000 "ResCopy"
  98. ¬†¬†¬†¬†¬†¬†¬†DLOG=10000 "ResCopy"
  99. (optional)
  100. ¬†¬†¬†¬†¬†¬†¬†DITL=10001 "RC Help"
  101. ¬†¬†¬†¬†¬†¬†¬†DLOG=10001 "RC Help"
  102.                      
  103. F)¬†If ResCopy finds the its two ‚ÄúHelp‚Äù resources 
  104. (see above), it‚Äôs ‚ÄúHelp‚Äù button is highlighted. If it doesn‚Äôt find the two resources, the button is disabled. You can tailor ResCopy for individual applications by modifying the text of the ‚ÄúRC Help‚Äù DITL using ResEdit.
  105.  
  106. G)¬†If you wish to switch to another application while running MultiFinder, click the HyperCard icon in the upper right corner of the menu bar, or on larger monitors, click in one of that application‚Äôs windows. When you switch back to HyperCard, ResCopy will still be active.
  107.  
  108. H) ‚Ä¢¬†‚Ä¢ Messages ‚Ä¢¬†‚Ä¢
  109.  
  110. *¬†‚ÄúConvert sound to HyperCard format?‚Äù - When copying 'snd ' resources, ResCopy will convert the sounds to HyperCard format if they are not already in that format. Click ‚ÄúOK‚Äù to do the conversion. Click ‚ÄúConvert all‚Äù to avoid further prompts when copying multiple sounds. The sound in the original file is left unchanged.
  111.  
  112. *¬†‚ÄúI am missing some of my resources!‚Äù - One of the resources listed above as ‚Äúrequired‚Äù is missing from the current stack and the Home stack.
  113.  
  114. *¬†‚ÄúThat file cannot be opened.‚Äù - There was a problem opening that file.
  115.  
  116. *¬†‚ÄúThat file is locked or busy.‚Äù - ResCopy was unable to add a new resource to a file.
  117.  
  118. * ‚ÄúThat number already exists! Enter another:‚Äù - The new number you entered for a resource is already assigned to a resource in that file.
  119.  
  120. *¬†‚ÄúNot enough memory to run ResCopy.‚Äù - ResCopy checks to see if there is at least 64K of free RAM. You can get this message if the RAM cache is turned up too high, or if you are running InBox‚Ñ¢ or TOPS‚Ñ¢. Turn off or disable one or more of these, or set the userLevel to 1 or 2 and try again.
  121.  
  122. *¬†‚ÄúNot enough memory to play sound.‚Äù - Just what it says.
  123.  
  124. *¬†‚ÄúOops, not a playable Hypercard sound.‚Äù - This is a ‚Äòtype 1‚Äô sound resource that is not a digitized sound, or is in some other way incompatible with HyperCard.
  125.  
  126.  
  127. ***************************
  128.  
  129. Use this in good health!
  130.  
  131. -- part contents for background part 10
  132. ----- text -----
  133. Syntax:
  134.  
  135. Rescopy
  136. --or--
  137. ResCopy <"fromFile">, <"toFile">, <"resType">, <resIDnumber>
  138. --or--
  139. ResCopy <"fromFile">, <"toFile">, <"resType">, <"resName">
  140.  
  141. If no parameters are passed, the Rescopy window will appear, which gives you a 'Font/DA mover' type interface to move resources.
  142.  
  143. Notes for scripted copying:
  144. ¬†¬†¬†a) you must supply the full pathname of 
  145. ‚ÄúfromFile‚Äù and ‚ÄútoFile‚Äù (you can use ‚Äúthe long name of this stack‚Äù for the ‚Äúfrom stack‚Äù, and use the ‚ÄúFileName‚Äù XFCN to allow the user to choose the ‚Äúto stack‚Äù)
  146. ¬†¬†¬†b) you can specify a resource by either its name or ID number
  147. ¬†¬†¬†c) if by name the name must be in quotes
  148. ¬†¬†¬†d) if by number the number needn‚Äôt be in quotes
  149. ¬†¬†¬†e) If a resource with the given name or number already exists, it is replaced
  150. ¬†¬†¬†f) If an error is encountered, the resource is not copied, a beep is sounded, and the HyperTalk global variable ‚Äúthe result‚Äù is set to ‚ÄúError!‚Äù (otherwise it is empty)
  151. ¬†¬†¬†g) Scripted copying can be used on any type of file, not just HyperCard stacks
  152.  
  153.  
  154. -- part contents for background part 13
  155. ----- text -----
  156. 19